import request from '@/utils/request'

// 查询销售单信息列表
export function listBusSales (query) {
  return request({
    url: '/business/busSales/list',
    method: 'get',
    params: query
  })
}

// 查询销售单信息详细
export function getBusSales (id) {
  return request({
    url: '/business/busSales/' + id,
    method: 'get'
  })
}

// 新增销售单信息
export function addBusSales (data) {
  return request({
    url: '/business/busSales',
    method: 'post',
    data: data
  })
}

// 修改销售单信息
export function updateBusSales (data) {
  return request({
    url: '/business/busSales',
    method: 'put',
    data: data
  })
}

// 删除销售单信息
export function delBusSales (id) {
  return request({
    url: '/business/busSales/' + id,
    method: 'delete'
  })
}

// 导出销售单信息
export function exportBusSales (query) {
  return request({
    url: '/business/busSales/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/business/busSales/getInitData/' + dictTypes,
    method: 'get'
  })
}
